package com.efuture.servlet.baseuse;

import jakarta.servlet.GenericServlet;
import jakarta.servlet.ServletException;
import jakarta.servlet.ServletRequest;
import jakarta.servlet.ServletResponse;
import jakarta.servlet.annotation.WebServlet;

import java.io.IOException;

/**
 * @description: 演示使用继承GenericServlet来简化Servlet书写
 * @author zhaoshanshan
 * @date 2021/10/2 8:41 下午
 * @version 1.0
 */
@WebServlet("/GenericServletServletTest")
public class GenericServletServletTest extends GenericServlet {
    @Override
    public void service(ServletRequest servletRequest, ServletResponse servletResponse) throws ServletException, IOException {
        System.out.println("我是GenericServlet的使用,只需要重写service方法即可");
    }
}
